package com.centronix.domain;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the receipt_detail database table.
 * 
 */
@Entity
@Table(name="receipt_detail")
public class ReceiptDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int receiptDetailId;

	private int units;

	//bi-directional many-to-one association to ProductRelease
    @ManyToOne
	@JoinColumn(name="ReleaseId")
	private ProductRelease productRelease;

	//bi-directional many-to-one association to Receipt
    @ManyToOne
	@JoinColumn(name="ReceiptId")
	private Receipt receipt;

    public ReceiptDetail() {
    }

	public int getReceiptDetailId() {
		return this.receiptDetailId;
	}

	public void setReceiptDetailId(int receiptDetailId) {
		this.receiptDetailId = receiptDetailId;
	}

	public int getUnits() {
		return this.units;
	}

	public void setUnits(int units) {
		this.units = units;
	}

	public ProductRelease getProductRelease() {
		return this.productRelease;
	}

	public void setProductRelease(ProductRelease productRelease) {
		this.productRelease = productRelease;
	}
	
	public Receipt getReceipt() {
		return this.receipt;
	}

	public void setReceipt(Receipt receipt) {
		this.receipt = receipt;
	}
	
}